import http from '_u/http.js';

export default {
    queryCourseExams:(params)=>{
        return http.get('/exam/queryCourseExams', {
            params
        });
    },


    queryExamSubmission: (params) => {
        return http.get('/exam/record/queryExamSubmission', {
            params
        });
    },

    queryExamProblems: (params) => {
        return http.get('/exam/queryExamProblems', {
            params
        });
    },


    submitExam: (data) => {
        return http.post('/exam/record/create', data);
    },


    retryExam: (params) => {
        return http.put('/exam/retry', {
            params
        })
    }
}
